package com.oren.base.pojo;

import java.util.List;
import java.util.Map;

/**
 * @Author: oren
 * @Description: 树的实体类
 * @Date: Create on 2017/11/8 0008 16:26
 */
public class Tree {

	/**
	 * 节点id
	 */
	private String id;

	/**
	 * 节点本文
	 */
	private String text;

	/**
	 * 节点状态'open' 或 'closed'，默认：'open'。如果为'closed'的时候，将不自动展开该节点。
	 */
	private String state;

	/**
	 * 是否被选中
	 */
	private boolean checked;

	/**
	 * 自定义的属性
	 */
	private List<Map<String,Object>> attributes;

	/**
	 *	子节点的相关属性值
	 */
	private List<Tree> children;

	/**
	 * 图标
	 */
	private String iconCls;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public List<Map<String, Object>> getAttributes() {
		return attributes;
	}

	public void setAttributes(List<Map<String, Object>> attributes) {
		this.attributes = attributes;
	}

	public List<Tree> getChildren() {
		return children;
	}

	public void setChildren(List<Tree> children) {
		this.children = children;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
}
